var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});


//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});

$("#form_cds #keyword").attr("title","请输入关键字");
$("#form_cds #keyword").attr("placeholder","请输入关键字");
$("#form_cds .zly_mzt_20170309topin>input").attr("title","搜索");
/**
* 图片处理片段
*/


$('img[src="./zl_74324/201810/W020190403512597455540.jpg"]').attr('title','扫黑除恶 吉林亮剑').attr('alt','扫黑除恶 吉林亮剑');$('img[src="./images/civil_right_icon03_lv.png"]').attr('title','微博图标').attr('alt','微博图标');$('img[src="../../mzdt/dt_4/shzz/201704/W020180207358787930931.jpg"]').attr('title','吉林省养老服务示范中心景色').attr('alt','吉林省养老服务示范中心景色');$('img[src="./images/civil_right_icon04_lv.png"]').attr('title','登录').attr('alt','登录');$('img[src="./zl_74324/201910/W020191011607515215335.png"]').attr('title','基层群众评议机关作风建设').attr('alt','基层群众评议机关作风建设');$('img[src="../mzdt/dt/201703/W020170410566300564643.jpg"]').attr('title','新闻发布会').attr('alt','新闻发布会');$('img[src="./mzyw_74261/tpxw/201912/W020191218335527421192.jpg"]').attr('title','吉林省民政厅在上海市举办第一批“养老机构智能化照护系统”管理使用工作培训班').attr('alt','吉林省民政厅在上海市举办第一批“养老机构智能化照护系统”管理使用工作培训班');$('img[src="./qt_74282/yqlj/201704/W020170426530475778493.jpg"]').attr('title','吉林省民政厅婚姻登记处').attr('alt','吉林省民政厅婚姻登记处');$('img[src="./qt_74282/pc/201903/W020190308403947179236.jpg"]').attr('title','最低生活保障投诉举报').attr('alt','最低生活保障投诉举报');$('img[src="./mzyw_74261/tpxw/201912/W020191212397405345502.jpg"]').attr('title','深入贯彻党的十九届四中全会精神 助推全省社会组织高质量发展——第二期吉林省社会组织工作培训班在深圳举办').attr('alt','深入贯彻党的十九届四中全会精神 助推全省社会组织高质量发展——第二期吉林省社会组织工作培训班在深圳举办');$('img[src="./zl_74324/201710/W020171023631115830649.jpg"]').attr('title','中国共产党第十九次全国代表大会').attr('alt','中国共产党第十九次全国代表大会');$('img[src="../mzdt/dt_2/201703/W020180207379134014534.jpg"]').attr('title','奔跑——吉林省孤儿学校运动会').attr('alt','奔跑——吉林省孤儿学校运动会');$('img[src="./mzdt/dt_4/jgdj/201802/W020180228343898405923.jpg"]').attr('title','福').attr('alt','福');$('img[src="./mzdt/dt_4/zhtj/201812/W020181220311710624092.jpg"]').attr('title','助力“脱贫攻坚” 推广“中国社会扶贫网”公益活动').attr('alt','助力“脱贫攻坚” 推广“中国社会扶贫网”公益活动');$('img[src="../../mzdt/dt_3/201704/W020180207377233473275.jpg"]').attr('title','411.jpg').attr('alt','411.jpg');$('img[src="./mzdt/dt_4/zhtj/201806/W020180606531788320284.jpg"]').attr('title','长影世纪城').attr('alt','长影世纪城');$('img[src="./qt_74282/pc/201905/W020190513341170018583.jpg"]').attr('title','扫黑除恶专项斗争').attr('alt','扫黑除恶专项斗争');$('img[src="./images/ic_turning left_pre20170310.png"]').attr('title','向左按钮').attr('alt','向左按钮');$('img[src="./mzyw_74261/tpxw/201910/W020191023390850042708.jpg"]').attr('title','省民政厅召开“幸福社区工程”和社区工作者队伍建设情况调研会').attr('alt','省民政厅召开“幸福社区工程”和社区工作者队伍建设情况调研会');$('img[src="../mzdt/dt_1/201704/W020180207380582565386.jpg"]').attr('title','社区义诊活动').attr('alt','社区义诊活动');$('img[src="./images/civil_right_icon05_lv.png"]').attr('title','中国福利彩票开奖公告').attr('alt','中国福利彩票开奖公告');$('img[src="./ldjj/201907/W020190717579767837064.jpg"]').attr('title','尤慧林照片').attr('alt','尤慧林照片');$('img[src="../zl_74324/201901/W020190118406532639877.jpg"]').attr('title','2019年全省民政工作会议').attr('alt','2019年全省民政工作会议');$('img[src="../../images/civil_tab01_icon01_lv.png"]').attr('title','装饰i图片').attr('alt','装饰i图片');$('img[src="./ldjj/201712/W020171221394865791344.jpg"]').attr('title','杜文革照片').attr('alt','杜文革照片');$('img[src="./images/ic_page turning_120170311.png"]').attr('title','向左按钮').attr('alt','向左按钮');$('img[src="./zl_74324/201909/W020190916344104208912.jpg"]').attr('title','吉林省第十八次民政会').attr('alt','吉林省第十八次民政会');$('img[src="./mzyw_74261/tpxw/201912/W020191202561032079101.jpg"]').attr('title','吉林省民政厅召开全省精神障碍社区康复服务工作推进会').attr('alt','吉林省民政厅召开全省精神障碍社区康复服务工作推进会');$('img[src="./mzyw_74261/tpxw/201910/W020191024313788028860.jpg"]').attr('title','李悦副省长调研养老服务发展工作').attr('alt','李悦副省长调研养老服务发展工作');$('img[src="./images/logo_120170310.png"]').attr('title','政府网站找错').attr('alt','政府网站找错');$('img[src="./ldjj/201703/W020170329715897238323.png"]').attr('title','乔恒照片').attr('alt','乔恒照片');$('img[src="./mzdt/dt_4/jgdj/201801/W020180207357316136163.jpg"]').attr('title','“大手拉小手”支部党员实践活动--吉林省孤儿学校').attr('alt','“大手拉小手”支部党员实践活动--吉林省孤儿学校');$('img[src="./qt_74282/yqlj/201704/W020170426533365665958.jpg"]').attr('title','北京社会管理职业学院').attr('alt','北京社会管理职业学院');$('img[src="../../images/civil_tab01_icon04_lv.png"]').attr('title','装饰i图片').attr('alt','装饰i图片');$('img[src="./qt_74282/yqlj/201704/W020170426531077448775.jpg"]').attr('title','吉林省慈善总会').attr('alt','吉林省慈善总会');$('img[src="./images/ic_page turning_220170311.png"]').attr('title','向右按钮').attr('alt','向右按钮');$('img[src="./ldjj/201703/W020170329724450626849.png"]').attr('title','张伟照片').attr('alt','张伟照片');$('img[src="../../mzdt/dt_3/201704/W020180207375643406440.jpg"]').attr('title','311.jpg').attr('alt','311.jpg');$('img[src="../mzdt/dt_1/201703/W020180207381459420996.jpg"]').attr('title','社会救助服务中心').attr('alt','社会救助服务中心');$('img[src="../zl_74324/zyhy/images/P020170717416648565584.png"]').attr('title','2017年全省民政工作会议').attr('alt','2017年全省民政工作会议');$('img[src="./ldjj/201703/W020170329723598527975.png"]').attr('title','唐文忠照片').attr('alt','唐文忠照片');$('img[src="./qt_74282/jgba/images/P020180129505269921033.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./images/ic-turning right_pre20170310.png"]').attr('title','向右按钮').attr('alt','向右按钮');$('img[src="../mzdt/dt/201704/W020180207382174987278.jpg"]').attr('title','捐款仪式').attr('alt','捐款仪式');$('img[src="./qt_74282/jgba/images/P020180305445798522384.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./images/logo_text20170309.png"]').attr('title','吉林省民政厅').attr('alt','吉林省民政厅');$('img[src="./mzdt/dt_4/zhtj/201806/W020180606532037617808.jpg"]').attr('title','参观江南贡院').attr('alt','参观江南贡院');$('img[src="./qt_74282/yqlj/201704/W020170426532605064864.jpg"]').attr('title','中国文明网').attr('alt','中国文明网');$('img[src="../zl_74324/201909/W020190916344104413578.jpg"]').attr('title','吉林省第十八次民政会').attr('alt','吉林省第十八次民政会');$('img[src="./ldjj/201901/W020190116562963113587.jpg"]').attr('title','尹居斌照片').attr('alt','尹居斌照片');$('img[src="./images/civil_right_icon04qc_lv.png"]').attr('title','纠错').attr('alt','纠错');$('img[src="./ldjj/201711/W020171109407478472351.jpg"]').attr('title','相瑛照片').attr('alt','相瑛照片');$('img[src="./mzyw_74261/tpxw/201911/W020191108657250938284.jpg"]').attr('title','推动全省社会组织高质量发展 为吉林全面振兴全方位振兴提供强大助力 ——全省社会组织改革领导小组会议召开').attr('alt','推动全省社会组织高质量发展 为吉林全面振兴全方位振兴提供强大助力 ——全省社会组织改革领导小组会议召开');$('img[src="./images/civil_right_icon01_lv.png"]').attr('title','微信图标').attr('alt','微信图标');$('img[src="./zl_74324/201901/W020190118402113853736.jpg"]').attr('title','2019年吉林省民政厅全省民政工作会议').attr('alt','2019年吉林省民政厅全省民政工作会议');$('img[src="../../images/civil_tab01_icon03_lv.png"]').attr('title','装饰i图片').attr('alt','装饰i图片');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/
/**
* 主导航
*/




/**
* 网站所有幻灯片
*/



/**
* 主页js
*/


if(location.href=="http://mzt.jl.gov.cn/" || location.href=="http://mzt.jl.gov.cn/index.html"){
//首页


// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
if(iframeObj != undefined){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
}
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

//通过方法赋值
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取


//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $("#tab li:eq(0) a");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $("#tab li:eq(1) a");  // 需要修改 这里的tab获取


// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$("#tab a:eq(0)").focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

// 第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

// 第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

}

}, 500);

}

//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});


//_EsdDynamicTransformationScript.slidePointInterval = setInterval(function () {
//	if ( $("#ty_banner_next")[0] != undefined
//			&& $("#ty_banner .ty_banner_tu:eq(4) .ty_banner_big a")[0] != undefined ) {
//		clearInterval(_EsdDynamicTransformationScript.slidePointInterval);

//轮播,右下角原点--鼠标移动触发情况

//第一个轮播的a标签赋值title
_EsdDynamicTransformationScript.esdTagATitle1 = $("#ty_banner .ty_banner_tu:eq(0) .ty_banner_big span").text();
_EsdDynamicTransformationScript.esdTagATitle2 = $("#ty_banner .ty_banner_tu:eq(1) .ty_banner_big span").text();
_EsdDynamicTransformationScript.esdTagATitle3 = $("#ty_banner .ty_banner_tu:eq(2) .ty_banner_big span").text();
_EsdDynamicTransformationScript.esdTagATitle4 = $("#ty_banner .ty_banner_tu:eq(3) .ty_banner_big span").text();
_EsdDynamicTransformationScript.esdTagATitle5 = $("#ty_banner .ty_banner_tu:eq(4) .ty_banner_big span").text();

$("#ty_banner .ty_banner_tu:eq(0) .ty_banner_big a").attr("title", _EsdDynamicTransformationScript.esdTagATitle1 );
$("#ty_banner .ty_banner_tu:eq(1) .ty_banner_big a").attr("title", _EsdDynamicTransformationScript.esdTagATitle2 );
$("#ty_banner .ty_banner_tu:eq(2) .ty_banner_big a").attr("title", _EsdDynamicTransformationScript.esdTagATitle3 );
$("#ty_banner .ty_banner_tu:eq(3) .ty_banner_big a").attr("title", _EsdDynamicTransformationScript.esdTagATitle4 );
$("#ty_banner .ty_banner_tu:eq(4) .ty_banner_big a").attr("title", _EsdDynamicTransformationScript.esdTagATitle5 );

//轮播：只获取轮播中一个a标签。
//以文字a标签为主，图片a标签尽量不要，title不稳定

//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $(".zly_mzt_20170309navbg6 a");

//文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $("#ty_banner .ty_banner_tu:eq(0) .ty_banner_big a");
_EsdDynamicTransformationScript.esdTagANum2 = $("#ty_banner .ty_banner_tu:eq(1) .ty_banner_big a");
_EsdDynamicTransformationScript.esdTagANum3 = $("#ty_banner .ty_banner_tu:eq(2) .ty_banner_big a");
_EsdDynamicTransformationScript.esdTagANum4 = $("#ty_banner .ty_banner_tu:eq(3) .ty_banner_big a");
_EsdDynamicTransformationScript.esdTagANum5 = $("#ty_banner .ty_banner_tu:eq(4) .ty_banner_big a");


//左右焦点
_EsdDynamicTransformationScript.esdTagLeftNum = $("#ty_banner_prev");
_EsdDynamicTransformationScript.esdTagRightNum = $("#ty_banner_next");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".zly_mzt_20170310tzggc a:eq(0)");


//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_0");
//				$(".zly_mzt_20170309navbg5 a").focus();
//				return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_0");

Qfast(false, 'widgets', function () {
K.tabs({
id: 'ty_banner_box',   //焦点图包裹id
conId: "ty_banner",  //** 大图域包裹id
tabId:"ty_banner_dian",
tabTn:"a",
conCn: '.ty_banner_tu', //** 大图域配置class
auto: 1,   //自动播放 1或0
effect: 'fade',   //效果配置
eType: 'click', //** 鼠标事件
pageBt:true,//是否有按钮切换页码
bns: ['.ty_banner_prev', '.ty_banner_next'],//** 前后按钮配置class
interval: 3000  //** 停顿时间
})
})

_EsdDynamicTransformationScript.esdTagRightNum.click();
_EsdDynamicTransformationScript.esdTagLeftNum.click();

_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_0");
});

//第一块
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
$(this).bind("keydown.keydown_l1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_l1");
_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_l1");

if($(".ty_banner_tu:eq(1)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagRightNum.click();
}

_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
$(this).unbind("keydown.keydown_l1");
});

//第二块
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
$(this).bind("keydown.keydown_l2", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_l2");

if($(".ty_banner_tu:eq(0)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagLeftNum.click();
}

_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_l2");

if($(".ty_banner_tu:eq(2)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagRightNum.click();
}

_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
$(this).unbind("keydown.keydown_l2");
});

//第三块
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
$(this).bind("keydown.keydown_l3", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_l3");

if($(".ty_banner_tu:eq(1)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagLeftNum.click();
}

_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_l3");

if($(".ty_banner_tu:eq(3)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagRightNum.click();
}

_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
$(this).unbind("keydown.keydown_l3");
});

//第四块
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
$(this).bind("keydown.keydown_l4", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_l4");

if($(".ty_banner_tu:eq(2)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagLeftNum.click();
}

_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_l4");

if($(".ty_banner_tu:eq(4)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagRightNum.click();
}

_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
$(this).unbind("keydown.keydown_l4");
});

//第五块
_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
$(this).bind("keydown.keydown_l5", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_l5");

if($(".ty_banner_tu:eq(3)").is(":hidden")){
_EsdDynamicTransformationScript.esdTagLeftNum.click();
}

_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_l5");
_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
$(this).unbind("keydown.keydown_l5");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
$(this).bind("keydown.keydown_l6", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_l6");
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_l6");
//				$(".zly_mzt_20170310tzggc a:eq(1)").focus();
//				return false;
}
});
});
_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
$(this).unbind("keydown.keydown_l6");
});

//	}
//}, 500);


//第二个轮播
//轮播,右下角原点--鼠标移动触发情况

//轮播：只获取轮播中一个a标签。
//以文字a标签为主，图片a标签尽量不要，title不稳定

//第二个轮播的文字
_EsdDynamicTransformationScript.esd12TagATitle1 = $("#ty_banner_dian2 a:eq(0) .ty_banner_tu2span").text();
_EsdDynamicTransformationScript.esd12TagATitle2 = $("#ty_banner_dian2 a:eq(1) .ty_banner_tu2span").text();
_EsdDynamicTransformationScript.esd12TagATitle3 = $("#ty_banner_dian2 a:eq(2) .ty_banner_tu2span").text();
_EsdDynamicTransformationScript.esd12TagATitle4 = $("#ty_banner_dian2 a:eq(3) .ty_banner_tu2span").text();
_EsdDynamicTransformationScript.esd12TagATitle5 = $("#ty_banner_dian2 a:eq(4) .ty_banner_tu2span").text();
_EsdDynamicTransformationScript.esd12TagATitle6 = $("#ty_banner_dian2 a:eq(5) .ty_banner_tu2span").text();
//第二个轮播a标签的title
$("#ty_banner2 .ty_banner_tu2:eq(0) a").attr("title", _EsdDynamicTransformationScript.esd12TagATitle1 );
$("#ty_banner2 .ty_banner_tu2:eq(1) a").attr("title", _EsdDynamicTransformationScript.esd12TagATitle2 );
$("#ty_banner2 .ty_banner_tu2:eq(2) a").attr("title", _EsdDynamicTransformationScript.esd12TagATitle3 );
$("#ty_banner2 .ty_banner_tu2:eq(3) a").attr("title", _EsdDynamicTransformationScript.esd12TagATitle4 );
$("#ty_banner2 .ty_banner_tu2:eq(4) a").attr("title", _EsdDynamicTransformationScript.esd12TagATitle5 );
$("#ty_banner2 .ty_banner_tu2:eq(5) a").attr("title", _EsdDynamicTransformationScript.esd12TagATitle6 );



//轮播前的标签
_EsdDynamicTransformationScript.esd12TagFrontNum1 = $(".zly_mzt_20170310tzggc a:eq(2)");

//文字A标签
_EsdDynamicTransformationScript.esd12TagANum1 = $("#ty_banner2 .ty_banner_tu2:eq(0) a");
_EsdDynamicTransformationScript.esd12TagANum2 = $("#ty_banner2 .ty_banner_tu2:eq(1) a");
_EsdDynamicTransformationScript.esd12TagANum3 = $("#ty_banner2 .ty_banner_tu2:eq(2) a");
_EsdDynamicTransformationScript.esd12TagANum4 = $("#ty_banner2 .ty_banner_tu2:eq(3) a");
_EsdDynamicTransformationScript.esd12TagANum5 = $("#ty_banner2 .ty_banner_tu2:eq(4) a");
_EsdDynamicTransformationScript.esd12TagANum6 = $("#ty_banner2 .ty_banner_tu2:eq(5) a");

//左右焦点
_EsdDynamicTransformationScript.esd12TagLeftNum = $(".ty_banner_prev2");
_EsdDynamicTransformationScript.esd12TagRightNum = $(".ty_banner_next2");

//轮播后的标签
_EsdDynamicTransformationScript.esd12TagAfterNum1 = $(".zly_mzt_20170310mzyw .zly_mzt_20170310mzyw_t h2 a");


//轮播前的焦点
_EsdDynamicTransformationScript.esd12TagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_ll0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll0");
//				$(".zly_mzt_20170310tzggc a:eq(1)").focus();
//				return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll0");

Qfast(false, 'widgets', function () {
K.tabs({
id: 'ty_banner_box2',   //焦点图包裹id
conId: "ty_banner2",  //** 大图域包裹id
tabId:"ty_banner_dian2",
tabTn:"a",
conCn: '.ty_banner_tu2', //** 大图域配置class
auto: 1,   //自动播放 1或0
effect: 'fade',   //效果配置
eType: 'click', //** 鼠标事件
pageBt:true,//是否有按钮切换页码
bns: ['.ty_banner_prev2', '.ty_banner_next2'],//** 前后按钮配置class
interval: 3000  //** 停顿时间
})
})
_EsdDynamicTransformationScript.esd12TagRightNum.click();
_EsdDynamicTransformationScript.esd12TagLeftNum.click();

_EsdDynamicTransformationScript.esd12TagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd12TagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_ll0");
});



//第一块
_EsdDynamicTransformationScript.esd12TagANum1.focus(function (e) {
$(this).bind("keydown.keydown_ll1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll1");
_EsdDynamicTransformationScript.esd12TagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll1");

if($(".ty_banner_tu2:eq(1)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagRightNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd12TagANum1.blur(function () {
$(this).unbind("keydown.keydown_ll1");
});

//第二块
_EsdDynamicTransformationScript.esd12TagANum2.focus(function (e) {
$(this).bind("keydown.keydown_ll2", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll2");

if($(".ty_banner_tu2:eq(0)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagLeftNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum1.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll2");

if($(".ty_banner_tu2:eq(2)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagRightNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd12TagANum2.blur(function () {
$(this).unbind("keydown.keydown_ll2");
});

//第三块
_EsdDynamicTransformationScript.esd12TagANum3.focus(function (e) {
$(this).bind("keydown.keydown_ll3", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll3");

if($(".ty_banner_tu2:eq(1)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagLeftNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum2.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll3");

if($(".ty_banner_tu2:eq(3)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagRightNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd12TagANum3.blur(function () {
$(this).unbind("keydown.keydown_ll3");
});

//第四块
_EsdDynamicTransformationScript.esd12TagANum4.focus(function (e) {
$(this).bind("keydown.keydown_ll4", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll4");

if($(".ty_banner_tu2:eq(2)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagLeftNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum3.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll4");

if($(".ty_banner_tu2:eq(4)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagRightNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum5.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd12TagANum4.blur(function () {
$(this).unbind("keydown.keydown_ll4");
});

//第五块
_EsdDynamicTransformationScript.esd12TagANum5.focus(function (e) {
$(this).bind("keydown.keydown_ll5", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll5");

if($(".ty_banner_tu2:eq(3)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagLeftNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum4.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll5");

if($(".ty_banner_tu2:eq(5)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagRightNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum6.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd12TagANum5.blur(function () {
$(this).unbind("keydown.keydown_ll5");
});

//第六块
_EsdDynamicTransformationScript.esd12TagANum6.focus(function (e) {
$(this).bind("keydown.keydown_ll6", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll6");

if($(".ty_banner_tu2:eq(4)").is(":hidden")){
_EsdDynamicTransformationScript.esd12TagLeftNum.click();
}

_EsdDynamicTransformationScript.esd12TagANum5.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll6");
_EsdDynamicTransformationScript.esd12TagAfterNum1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd12TagANum6.blur(function () {
$(this).unbind("keydown.keydown_ll6");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esd12TagAfterNum1.focus(function (e) {
$(this).bind("keydown.keydown_ll7", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_ll7");
_EsdDynamicTransformationScript.esd12TagANum6.focus();
return false;
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_ll7");
}
});
});
_EsdDynamicTransformationScript.esd12TagAfterNum1.blur(function () {
$(this).unbind("keydown.keydown_ll7");
});



_EsdDynamicTransformationScript.esd13TagNum1 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(0) a");
_EsdDynamicTransformationScript.esd13TagNum2 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(1) a");
_EsdDynamicTransformationScript.esd13TagNum3 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(2) a");
_EsdDynamicTransformationScript.esd13TagNum4 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(3) a");
_EsdDynamicTransformationScript.esd13TagNum5 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(4) a");
_EsdDynamicTransformationScript.esd13TagNum6 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(5) a");
_EsdDynamicTransformationScript.esd13TagNum7 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(6) a");
_EsdDynamicTransformationScript.esd13TagNum8 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzywul .zly_mzt_20170310mzywulli:eq(7) a");


_EsdDynamicTransformationScript.esd13TagNum1.focus(function(){
$(this).bind("keydown.keydown_131",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd12TagAfterNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum1.blur(function () {
$(this).unbind("keydown.keydown_131");
});

_EsdDynamicTransformationScript.esd13TagNum2.focus(function(){
$(this).bind("keydown.keydown_132",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd13TagNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum2.blur(function () {
$(this).unbind("keydown.keydown_132");
});

_EsdDynamicTransformationScript.esd13TagNum3.focus(function(){
$(this).bind("keydown.keydown_133",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd13TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum3.blur(function () {
$(this).unbind("keydown.keydown_133");
});

_EsdDynamicTransformationScript.esd13TagNum4.focus(function(){
$(this).bind("keydown.keydown_134",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd13TagNum3.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum4.blur(function () {
$(this).unbind("keydown.keydown_134");
});

_EsdDynamicTransformationScript.esd13TagNum5.focus(function(){
$(this).bind("keydown.keydown_135",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd13TagNum4.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum5.blur(function () {
$(this).unbind("keydown.keydown_135");
});

_EsdDynamicTransformationScript.esd13TagNum6.focus(function(){
$(this).bind("keydown.keydown_136",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd13TagNum5.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum6.blur(function () {
$(this).unbind("keydown.keydown_136");
});

_EsdDynamicTransformationScript.esd13TagNum7.focus(function(){
$(this).bind("keydown.keydown_137",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd13TagNum6.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum7.blur(function () {
$(this).unbind("keydown.keydown_137");
});

_EsdDynamicTransformationScript.esd13TagNum8.focus(function(){
$(this).bind("keydown.keydown_138",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd13TagNum7.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd13TagNum8.blur(function () {
$(this).unbind("keydown.keydown_138");
});


//第一部分
//二层

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .product-wrap .product:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .product-wrap .product:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esdTagNum1 = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .zly_mzt_20170310mzyw_t li:eq(0) a");
_EsdDynamicTransformationScript.esdTagNum2 = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .zly_mzt_20170310mzyw_t li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esdTagNum1Content1 = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .product-wrap .product:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esdTagNum2Content1 = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .product-wrap .product:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esdTagNum1ContentN = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .product-wrap .product:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esdTagNum2ContentN = $(".zly_mzt_20170310c .zly_mzt_20170310tpxw .product-wrap .product:eq(1) a:eq("+_EsdDynamicTransformationScript.num2+")");

//第一块
_EsdDynamicTransformationScript.esdTagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown_x1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagNum1.blur(function () {

$(this).unbind("keydown.keydown_x1");
});

_EsdDynamicTransformationScript.esdTagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_x1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_x1");
});

_EsdDynamicTransformationScript.esdTagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_x1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_x1");
});

//第二块
_EsdDynamicTransformationScript.esdTagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_x2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagNum1.mouseover();
_EsdDynamicTransformationScript.esdTagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagNum2.blur(function () {
$(this).unbind("keydown.keydown_x2");
});



_EsdDynamicTransformationScript.iframe3 = {};

//iframe获取
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe3,document.getElementsByTagName("iframe")[2]);
//iframe选项卡头
_EsdDynamicTransformationScript.iframeTab3 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzyw_t .zly_mzt_20170310dfxx_tli:eq(0) a");
//更多
_EsdDynamicTransformationScript.iframeTab3More = $(".zly_mzt_20170310mzyw .product-wrap1 .product1 span:eq(0) a");

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab3.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab3.trigger("blur");
_EsdDynamicTransformationScript.esdTagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab3.trigger("blur");
_EsdDynamicTransformationScript.iframeTab3More.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab3.blur(function () {
$(this).unbind("keydown.iframeKeydown_3");
});



_EsdDynamicTransformationScript.iframeTab3More.focus(function (e) {
$(this).bind("keydown.iframeKeydown_3More", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab3More.trigger("blur");
_EsdDynamicTransformationScript.iframeTab3.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab3More.trigger("blur");
$(_EsdDynamicTransformationScript.iframe3.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab3More.blur(function () {
$(this).unbind("keydown.iframeKeydown_3More");
});

// 第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe3.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe3.self.contentWindow.document).bind("keydown.iframeKeydown_first3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab3More.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe3.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe3.self.contentWindow.document).unbind("keydown.iframeKeydown_first3");
});




//第二部分

//二层

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num4 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a").length-1;

//各个选项名称$
_EsdDynamicTransformationScript.esd2TagNum2 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .zly_mzt_20170310mzyw_t .zly_mzt_20170310dfxx_tli:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(0)");

_EsdDynamicTransformationScript.esd2TagNum2Content11 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(1)");
_EsdDynamicTransformationScript.esd2TagNum2Content2 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(2)");
_EsdDynamicTransformationScript.esd2TagNum2Content3 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(3)");
_EsdDynamicTransformationScript.esd2TagNum2Content4 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(4)");
_EsdDynamicTransformationScript.esd2TagNum2Content5 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(5)");
_EsdDynamicTransformationScript.esd2TagNum2Content6 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(6)");
_EsdDynamicTransformationScript.esd2TagNum2Content7 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(7)");
_EsdDynamicTransformationScript.esd2TagNum2Content8 = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq(8)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1:eq(1) a:eq("+_EsdDynamicTransformationScript.num4+")");



// 第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe3.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe3.self.contentWindow.document).bind("keydown.iframeKeydown_last3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum2.mouseover();
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe3.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe3.self.contentWindow.document).unbind("keydown.iframeKeydown_last3");
});


//第二块
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_w2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.iframeTab3.mouseover();
$(_EsdDynamicTransformationScript.iframe3.self).focus();
$(_EsdDynamicTransformationScript.iframe3.last_aLink).focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
$(this).unbind("keydown.keydown_w2");
});

_EsdDynamicTransformationScript.esd2TagNum2Content1.focus(function(){
$(this).bind("keydown.keydown_w21",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}else if (e.keyCode == 9) {
}
});

});
_EsdDynamicTransformationScript.esd2TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_w21");
});

_EsdDynamicTransformationScript.esd2TagNum2Content11.focus(function(){
$(this).bind("keydown.keydown_w211",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content11.blur(function () {
$(this).unbind("keydown.keydown_w211");
});

_EsdDynamicTransformationScript.esd2TagNum2Content2.focus(function(){
$(this).bind("keydown.keydown_w22",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content11.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content2.blur(function () {
$(this).unbind("keydown.keydown_w22");
});

_EsdDynamicTransformationScript.esd2TagNum2Content3.focus(function(){
$(this).bind("keydown.keydown_w23",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content2.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content3.blur(function () {
$(this).unbind("keydown.keydown_w23");
});

_EsdDynamicTransformationScript.esd2TagNum2Content4.focus(function(){
$(this).bind("keydown.keydown_w24",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content3.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content4.blur(function () {
$(this).unbind("keydown.keydown_w24");
});

_EsdDynamicTransformationScript.esd2TagNum2Content5.focus(function(){
$(this).bind("keydown.keydown_w25",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content4.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content5.blur(function () {
$(this).unbind("keydown.keydown_w25");
});

_EsdDynamicTransformationScript.esd2TagNum2Content6.focus(function(){
$(this).bind("keydown.keydown_w26",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content5.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content6.blur(function () {
$(this).unbind("keydown.keydown_w26");
});

_EsdDynamicTransformationScript.esd2TagNum2Content7.focus(function(){
$(this).bind("keydown.keydown_w27",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content6.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content7.blur(function () {
$(this).unbind("keydown.keydown_w27");
});

_EsdDynamicTransformationScript.esd2TagNum2Content8.focus(function(){
$(this).bind("keydown.keydown_w28",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content7.focus();
return false;
}else if (e.keyCode == 9) {
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content8.blur(function () {
$(this).unbind("keydown.keydown_w28");
});

_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus(function(){
$(this).bind("keydown.keydown_w2N",function(e){
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2Content8.focus();
return false;
}else if (e.keyCode == 9) {
}
});

});
_EsdDynamicTransformationScript.esd2TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_w2N");
});

//ie模式下，统计数据的更多，向下切换焦点会跳到网址栏进行循环，这块处理一下
$(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1 a:eq(0)").focus(function(){
$(this).bind("keydown.keydown_more",function(e){
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1 a:eq(1)").focus();
return false;
}
});
});
$(".zly_mzt_20170310c .zly_mzt_20170310mzyw .product-wrap1 .product1 a:eq(0)").blur(function () {
$(this).unbind("keydown.keydown_more");
});





//首页结束
}













/**
* 二级页
*/

// -------------------------------二级页------------------------------------

if(location.href=="http://mzt.jl.gov.cn/wshd_74268/"){
//互动
$("#form_cds .zly_hd_20170316rdl_ss1").attr({placeholder:"请输入搜索关键词",title:"请输入搜索关键词"});
$("#form_cds .zly_hd_20170316rdl_ss2").attr({placeholder:"请输入搜索关键词",title:"请输入搜索关键词"});

//	$(".zly_mzt_20170310c .zly_hd_20170316l .zly_hd_20170316lzx .zly_mzt_20170310fl a").focus(function (e) {
//		$(this).bind("keydown.keydownhd_0", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				$("#ty_banner a:eq(0)").focus();
//				return false;
//			}else if (e.keyCode == 9) {
//				$(".zly_mzt_20170310c .zly_hd_20170316l .zly_hd_20170316lzx .civil_rcsp01_top01_titspan02 a").focus();
//				return false;
//			}
//		});
//	});
//	$(".zly_mzt_20170310c .zly_hd_20170316l .zly_hd_20170316lzx .zly_mzt_20170310fl a").blur(function () {
//		$(this).unbind("keydown.keydownhd_0");
//	});


}


if(location.href=="http://mzt.jl.gov.cn/wshd_74268/ldxx/" || location.href=="http://mzt.jl.gov.cn/wshd_74268/wsxfss/"){
//领导信箱--网上信访

_EsdDynamicTransformationScript.slidePointIntervalyx = setInterval(function () {
if ( document.getElementsByTagName("iframe")[0].contentWindow.document.getElementById("SubmitButton") != undefined ) {
clearInterval(_EsdDynamicTransformationScript.slidePointIntervalyx);

var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名",title:"姓名"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"联系电话",title:"联系电话"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"通讯地址",title:"通讯地址"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder:"单位名称",title:"单位名称"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder:"电子邮件",title:"电子邮件"});
$(inputIframe).find("#frmData input:eq(5)").attr({placeholder:"标题",title:"标题"});

$(inputIframe).find("#frmData textarea").attr({placeholder:"内容",title:"内容"});

$(inputIframe).find("#SubmitButton").attr("title","提交");
$(inputIframe).find("#ResetButton").attr("title","重置");

}
}, 500);

}



if(location.href=="http://mzt.jl.gov.cn/xxgk_2643/jgzn/"){
//二级页(导航---机构)

////轮播：只获取轮播中一个a标签。
////以文字a标签为主，图片a标签尽量不要，title不稳定
//
////轮播前的标签
// _EsdDynamicTransformationScript.esdTagFrontNum1 = $(".zly_mzt_20170309navbg6 a:eq(0)");
//
////文字A标签
// _EsdDynamicTransformationScript.esdTagANum1 = $("#ty_banner .ty_banner_tu:eq(0) .ty_banner_big a");
// _EsdDynamicTransformationScript.esdTagANum2 = $("#ty_banner .ty_banner_tu:eq(1) .ty_banner_big a");
//
////左右焦点
// _EsdDynamicTransformationScript.esdTagLeftNum = $("#ty_banner_prev");
// _EsdDynamicTransformationScript.esdTagRightNum = $("#ty_banner_next");
//
////轮播后的标签
// _EsdDynamicTransformationScript.esdTagAfterNum1 = $(".zly_mzt_20170310c a:eq(0)");
//
//
//	//轮播前的焦点
//	_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
//		$(this).bind("keydown.keydown_0", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
////				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//			}else if (e.keyCode == 9) {
////				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				console.log(document.activeElement);
//				return false;
//			}
//		});
//	});
//	_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
//		$(this).unbind("keydown.keydown_0");
//	});
//
//
//
//	//第一块
//	_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l1", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
//				return false;
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//
//				if( $("#ty_banner .ty_banner_tu:eq(1)" ).is(":hidden")){
//					_EsdDynamicTransformationScript.esdTagRightNum.click();
//			    }
//
//				_EsdDynamicTransformationScript.esdTagANum2.focus();
//				return false;
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
//		$(this).unbind("keydown.keydown_l1");
//	});
//
//	//第二块
//	_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l2", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
//
//				if( $("#ty_banner .ty_banner_tu:eq(0)" ).is(":hidden")){
//					_EsdDynamicTransformationScript.esdTagLeftNum.click();
//			    }
//
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				return false;
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
//				return false;
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
//		$(this).unbind("keydown.keydown_l2");
//	});
//
//	_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
//		$(this).bind("keydown.keydown_l3", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum2.focus();
//				return false;
//			}else if (e.keyCode == 9) {
//
//			}
//		});
//	});
//	_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
//		$(this).unbind("keydown.keydown_l3");
//	});
//




//二级选项卡

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_mzt_20170310t30 .product1:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_mzt_20170310t30 .product1:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_jg_20170315jgszbul li:eq(0) a");
_EsdDynamicTransformationScript.esd2TagNum2 = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_jg_20170315jgszbul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_mzt_20170310t30 .product1:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_mzt_20170310t30 .product1:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_mzt_20170310t30 .product1:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $(".zly_mzt_20170310c .zly_jg_20170315r .zly_jg_20170315jgsz .zly_jg_20170315jgszb .zly_mzt_20170310t30 .product1:eq(1) a:eq("+_EsdDynamicTransformationScript.num2+")");

//第一块
_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown2_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {
$(this).unbind("keydown.keydown2_1");
});

_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown2_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown2_s1");
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown2_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown2_e1");
});

//第二块
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown2_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
$(this).unbind("keydown.keydown2_2");
});



}

if(location.href=="http://mzt.jl.gov.cn/xxgk_2643/"){
//二级页(导航---公开)

//
////轮播：只获取轮播中一个a标签。
////以文字a标签为主，图片a标签尽量不要，title不稳定
//
////轮播前的标签
// _EsdDynamicTransformationScript.esdTagFrontNum1 = $(".zly_mzt_20170309navbg6 a:eq(0)");
//
////文字A标签
// _EsdDynamicTransformationScript.esdTagANum1 = $("#ty_banner .ty_banner_tu:eq(0) .ty_banner_big a");
// _EsdDynamicTransformationScript.esdTagANum2 = $("#ty_banner .ty_banner_tu:eq(1) .ty_banner_big a");
//
////左右焦点
// _EsdDynamicTransformationScript.esdTagLeftNum = $("#ty_banner_prev");
// _EsdDynamicTransformationScript.esdTagRightNum = $("#ty_banner_next");
//
////轮播后的标签
// _EsdDynamicTransformationScript.esdTagAfterNum1 = $(".zly_mzt_20170310c a:eq(0)");
//
//
//	//轮播前的焦点
//	_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
//		$(this).bind("keydown.keydown_0", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
////				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				console.log(document.activeElement);
//				return false;
//			}
//		});
//	});
//	_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
//		$(this).unbind("keydown.keydown_0");
//	});
//
//
//
//	//第一块
//	_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l1", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//
//				if( $("#ty_banner .ty_banner_tu:eq(1)" ).is(":hidden")){
//					_EsdDynamicTransformationScript.esdTagRightNum.click();
//			    }
//
//				_EsdDynamicTransformationScript.esdTagANum2.focus();
//				console.log(document.activeElement);
//				return false;
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
//		$(this).unbind("keydown.keydown_l1");
//	});
//
//	//第二块
//	_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l2", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
//
//				if( $("#ty_banner .ty_banner_tu:eq(0)" ).is(":hidden")){
//					_EsdDynamicTransformationScript.esdTagLeftNum.click();
//			    }
//
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				return false;
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
//				_EsdDynamicTransformationScript.esd1TagNum1.focus();
//				return false;
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
//		$(this).unbind("keydown.keydown_l2");
//	});



//三级选项卡
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(1) a").length-1;
_EsdDynamicTransformationScript.num3 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(2) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_bt_20170314 ul li:eq(0) a");
_EsdDynamicTransformationScript.esd1TagNum2 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_bt_20170314 ul li:eq(1) a");
_EsdDynamicTransformationScript.esd1TagNum3 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_bt_20170314 ul li:eq(2) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum3Content1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(2) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(1) a:eq("+_EsdDynamicTransformationScript.num2+")");
_EsdDynamicTransformationScript.esd1TagNum3ContentN = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315sj .zly_gk_20170315sjb .product1:eq(2) a:eq("+_EsdDynamicTransformationScript.num3+")");

//第一块
_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown1_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum2.focus();
//				return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
$(this).unbind("keydown.keydown1_1");
});

_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown1_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown1_s1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown1_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				$(this).trigger("blur");
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown1_e1");
});
//第二块
_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown1_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
$(this).unbind("keydown.keydown1_2");
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown1_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown1_s2");
});

_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown1_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				$(this).trigger("blur");
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown1_e2");
});

//第三块
_EsdDynamicTransformationScript.esd1TagNum3.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown3_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum3.blur(function () {
$(this).unbind("keydown.keydown3_3");
});

_EsdDynamicTransformationScript.esd1TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown3_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//				$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
}
});
});
_EsdDynamicTransformationScript.esd1TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown3_s3");
});


//二级选项卡

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num4 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_gk_20170315sjb .product1:eq(0) a").length-1;
_EsdDynamicTransformationScript.num5 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_gk_20170315sjb .product1:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_bt_20170314 ul li:eq(0) a");
_EsdDynamicTransformationScript.esd2TagNum2 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_bt_20170314 ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_gk_20170315sjb .product1:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_gk_20170315sjb .product1:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_gk_20170315sjb .product1:eq(0) a:eq("+_EsdDynamicTransformationScript.num4+")");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $(".zly_mzt_20170310c .zly_gk_20170315 .zly_gk_20170315gg .zly_gk_20170315sjb .product1:eq(1) a:eq("+_EsdDynamicTransformationScript.num5+")");

//第一块
_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown2_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {

$(this).unbind("keydown.keydown2_1");
});

_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown2_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown2_s1");
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown2_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown2_e1");
});

//第二块
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown2_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
$(this).unbind("keydown.keydown2_2");
});



}

if(location.href=="http://mzt.jl.gov.cn/bsfw_74187/"){
//二级页(导航---服务)

////轮播：只获取轮播中一个a标签。
////以文字a标签为主，图片a标签尽量不要，title不稳定
//
////轮播前的标签
// _EsdDynamicTransformationScript.esdTagFrontNum1 = $(".zly_mzt_20170309navbg6 a:eq(0)");
//
////文字A标签
// _EsdDynamicTransformationScript.esdTagANum1 = $("#ty_banner .ty_banner_tu:eq(0) .ty_banner_big a");
// _EsdDynamicTransformationScript.esdTagANum2 = $("#ty_banner .ty_banner_tu:eq(1) .ty_banner_big a");
//
////左右焦点
// _EsdDynamicTransformationScript.esdTagLeftNum = $("#ty_banner_prev");
// _EsdDynamicTransformationScript.esdTagRightNum = $("#ty_banner_next");
//
////轮播后的标签
// _EsdDynamicTransformationScript.esdTagAfterNum1 = $(".zly_mzt_20170310c a:eq(0)");
//
//
//	//轮播前的焦点
//	_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
//		$(this).bind("keydown.keydown_0", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
////				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//			}else if (e.keyCode == 9) {
////				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				console.log(document.activeElement);
//				return false;
//			}
//		});
//	});
//	_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
//		$(this).unbind("keydown.keydown_0");
//	});
//
//
//
//	//第一块
//	_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l1", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//
//				if( $("#ty_banner .ty_banner_tu:eq(1)" ).is(":hidden")){
//					_EsdDynamicTransformationScript.esdTagRightNum.click();
//			    }
//
//				_EsdDynamicTransformationScript.esdTagANum2.focus();
//				console.log(document.activeElement);
//				return false;
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
//		$(this).unbind("keydown.keydown_l1");
//	});
//
//	//第二块
//	_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l2", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
//
//				if( $("#ty_banner .ty_banner_tu:eq(0)" ).is(":hidden")){
//					_EsdDynamicTransformationScript.esdTagLeftNum.click();
//			    }
//
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				return false;
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
//				return false;
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
//		$(this).unbind("keydown.keydown_l2");
//	});
//
//	//轮播后的焦点
//	_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l6", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum2.focus();
//				return false;
//			}else if (e.keyCode == 9) {
////				_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
//		$(this).unbind("keydown.keydown_l6");
//	});


}

if(location.href=="http://mzt.jl.gov.cn/wshd_74268/" || location.href=="http://mzt.jl.gov.cn/mztyw_74291/shzzgl/"){
//二级页(导航---互动,业务)

//
////轮播：只获取轮播中一个a标签。
////以文字a标签为主，图片a标签尽量不要，title不稳定
//
////轮播前的标签
// _EsdDynamicTransformationScript.esdTagFrontNum1 = $(".zly_mzt_20170309navbg6 a:eq(0)");
//
////文字A标签
// _EsdDynamicTransformationScript.esdTagANum1 = $("#ty_banner .ty_banner_tu:eq(0) .ty_banner_big a");
//
////左右焦点
// _EsdDynamicTransformationScript.esdTagLeftNum = $("#ty_banner_prev");
// _EsdDynamicTransformationScript.esdTagRightNum = $("#ty_banner_next");
//
////轮播后的标签
// _EsdDynamicTransformationScript.esdTagAfterNum1 = $(".zly_mzt_20170310c a:eq(0)");
//
//
//	//轮播前的焦点
//	_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
//		$(this).bind("keydown.keydown_0", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
////				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//			}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				console.log(document.activeElement);
//				return false;
//			}
//		});
//	});
//	_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
//		$(this).unbind("keydown.keydown_0");
//	});
//
//
//
//	//第一块
//	_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l1", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
////				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//			}else if (e.keyCode == 9) {
////				_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
//				return false;
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
//		$(this).unbind("keydown.keydown_l1");
//	});
//
//
//	//轮播后的焦点
//	_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
//
//		$(this).bind("keydown.keydown_l6", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
////				_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
//				_EsdDynamicTransformationScript.esdTagANum1.focus();
//				return false;
//			}else if (e.keyCode == 9) {
////				_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
//		$(this).unbind("keydown.keydown_l6");
//	});


}

if(location.href=="http://mzt.jl.gov.cn/mzyw_74261/"){
//二级页(民政要闻)

//八级轮播
//轮播前的标签
_EsdDynamicTransformationScript.esd1TagFrontNum1 = $(".zly_mzt_mzyw20170310dq a:eq(1)");

//文字A标签
_EsdDynamicTransformationScript.esd1TagANum1 = $("#ty_banner4>.ty_banner_tu4:eq(0) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");
_EsdDynamicTransformationScript.esd1TagANum2 = $("#ty_banner4>.ty_banner_tu4:eq(1) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");
_EsdDynamicTransformationScript.esd1TagANum3 = $("#ty_banner4>.ty_banner_tu4:eq(2) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");
_EsdDynamicTransformationScript.esd1TagANum4 = $("#ty_banner4>.ty_banner_tu4:eq(3) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");
_EsdDynamicTransformationScript.esd1TagANum5 = $("#ty_banner4>.ty_banner_tu4:eq(4) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");
_EsdDynamicTransformationScript.esd1TagANum6 = $("#ty_banner4>.ty_banner_tu4:eq(5) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");
_EsdDynamicTransformationScript.esd1TagANum7 = $("#ty_banner4>.ty_banner_tu4:eq(6) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");
_EsdDynamicTransformationScript.esd1TagANum8 = $("#ty_banner4>.ty_banner_tu4:eq(7) .zly_mzt_mzyw20170310mzyw1 .zly_mzt_mzyw20170310mzywa1");

//原点
_EsdDynamicTransformationScript.esd1TagCircleNum1 = $("#ty_banner_dian4 a:eq(0) span");
_EsdDynamicTransformationScript.esd1TagCircleNum2 = $("#ty_banner_dian4 a:eq(1) span");
_EsdDynamicTransformationScript.esd1TagCircleNum3 = $("#ty_banner_dian4 a:eq(2) span");
_EsdDynamicTransformationScript.esd1TagCircleNum4 = $("#ty_banner_dian4 a:eq(3) span");
_EsdDynamicTransformationScript.esd1TagCircleNum5 = $("#ty_banner_dian4 a:eq(4) span");
_EsdDynamicTransformationScript.esd1TagCircleNum6 = $("#ty_banner_dian4 a:eq(5) span");
_EsdDynamicTransformationScript.esd1TagCircleNum7 = $("#ty_banner_dian4 a:eq(6) span");
_EsdDynamicTransformationScript.esd1TagCircleNum8 = $("#ty_banner_dian4 a:eq(7) span");

//轮播后的标签
_EsdDynamicTransformationScript.esd1TagAfterNum1 = $(".zly_mzt_mzyw20170310lb .zly_mzt_mzyw20170310lbt a:eq(0)");

//轮播前的焦点
_EsdDynamicTransformationScript.esd1TagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown1_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum1.click();
_EsdDynamicTransformationScript.esd1TagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown1_0");
});

//第一块
_EsdDynamicTransformationScript.esd1TagANum1.focus(function (e) {
$(this).bind("keydown.keydown1_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum2.click();
_EsdDynamicTransformationScript.esd1TagANum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagANum1.blur(function () {
$(this).unbind("keydown.keydown1_1");
});

//第二块
_EsdDynamicTransformationScript.esd1TagANum2.focus(function (e) {
$(this).bind("keydown.keydown1_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagCircleNum1.click();
_EsdDynamicTransformationScript.esd1TagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum3.click();
_EsdDynamicTransformationScript.esd1TagANum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagANum2.blur(function () {
$(this).unbind("keydown.keydown1_2");
});

//第三块
_EsdDynamicTransformationScript.esd1TagANum3.focus(function (e) {
$(this).bind("keydown.keydown1_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagCircleNum2.click();
_EsdDynamicTransformationScript.esd1TagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum4.click();
_EsdDynamicTransformationScript.esd1TagANum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagANum3.blur(function () {
$(this).unbind("keydown.keydown1_3");
});

//第四块
_EsdDynamicTransformationScript.esd1TagANum4.focus(function (e) {
$(this).bind("keydown.keydown1_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagCircleNum3.click();
_EsdDynamicTransformationScript.esd1TagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum5.click();
_EsdDynamicTransformationScript.esd1TagANum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagANum4.blur(function () {
$(this).unbind("keydown.keydown1_4");
});


//第五块
_EsdDynamicTransformationScript.esd1TagANum5.focus(function (e) {
$(this).bind("keydown.keydown1_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagCircleNum4.click();
_EsdDynamicTransformationScript.esd1TagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum6.click();
_EsdDynamicTransformationScript.esd1TagANum6.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagANum5.blur(function () {
$(this).unbind("keydown.keydown1_5");
});

//第六块
_EsdDynamicTransformationScript.esd1TagANum6.focus(function (e) {
$(this).bind("keydown.keydown1_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagCircleNum5.click();
_EsdDynamicTransformationScript.esd1TagANum5.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum7.click();
_EsdDynamicTransformationScript.esd1TagANum7.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagANum6.blur(function () {
$(this).unbind("keydown.keydown1_6");
});

//第七块
_EsdDynamicTransformationScript.esd1TagANum7.focus(function (e) {
$(this).bind("keydown.keydown1_7", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagCircleNum6.click();
_EsdDynamicTransformationScript.esd1TagANum6.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagCircleNum8.click();
_EsdDynamicTransformationScript.esd1TagANum8.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagANum7.blur(function () {
$(this).unbind("keydown.keydown1_7");
});

//第八块
_EsdDynamicTransformationScript.esd1TagANum8.focus(function (e) {
$(this).bind("keydown.keydown1_8", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagCircleNum7.click();
_EsdDynamicTransformationScript.esd1TagANum7.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagAfterNum1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagANum8.blur(function () {
$(this).unbind("keydown.keydown1_8");
});

//轮播后的焦点
//	_EsdDynamicTransformationScript.esd1TagAfterNum1.focus(function (e) {
//		$(this).bind("keydown.keydown1_9", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esd1TagCircleNum8.click();
//				_EsdDynamicTransformationScript.esd1TagANum8.focus();
//				return false;
//			}else if (e.keyCode == 9) {
//
//			}
//		});
//	});
//	_EsdDynamicTransformationScript.esd1TagAfterNum1.blur(function () {
//		$(this).unbind("keydown.keydown1_9");
//	});


//五级轮播
//轮播前的标签
// _EsdDynamicTransformationScript.esd1TagAfterNum1;

_EsdDynamicTransformationScript.esd2TagATitle1 = $("#ty_banner_diansx a:eq(0)").text();
_EsdDynamicTransformationScript.esd2TagATitle2 = $("#ty_banner_diansx a:eq(1)").text();
_EsdDynamicTransformationScript.esd2TagATitle3 = $("#ty_banner_diansx a:eq(2)").text();
_EsdDynamicTransformationScript.esd2TagATitle4 = $("#ty_banner_diansx a:eq(3)").text();
_EsdDynamicTransformationScript.esd2TagATitle5 = $("#ty_banner_diansx a:eq(4)").text();
//轮播a标签的title
$("#ty_bannersx>.ty_banner_tusx:eq(0) .ty_banner_big a:eq(0)").attr("title", _EsdDynamicTransformationScript.esd2TagATitle1 );
$("#ty_bannersx>.ty_banner_tusx:eq(1) .ty_banner_big a:eq(0)").attr("title", _EsdDynamicTransformationScript.esd2TagATitle2 );
$("#ty_bannersx>.ty_banner_tusx:eq(2) .ty_banner_big a:eq(0)").attr("title", _EsdDynamicTransformationScript.esd2TagATitle3 );
$("#ty_bannersx>.ty_banner_tusx:eq(3) .ty_banner_big a:eq(0)").attr("title", _EsdDynamicTransformationScript.esd2TagATitle4 );
$("#ty_bannersx>.ty_banner_tusx:eq(4) .ty_banner_big a:eq(0)").attr("title", _EsdDynamicTransformationScript.esd2TagATitle5 );

//文字A标签
_EsdDynamicTransformationScript.esd2TagANum1 = $("#ty_bannersx>.ty_banner_tusx:eq(0) .ty_banner_big a:eq(0)");
_EsdDynamicTransformationScript.esd2TagANum2 = $("#ty_bannersx>.ty_banner_tusx:eq(1) .ty_banner_big a:eq(0)");
_EsdDynamicTransformationScript.esd2TagANum3 = $("#ty_bannersx>.ty_banner_tusx:eq(2) .ty_banner_big a:eq(0)");
_EsdDynamicTransformationScript.esd2TagANum4 = $("#ty_bannersx>.ty_banner_tusx:eq(3) .ty_banner_big a:eq(0)");
_EsdDynamicTransformationScript.esd2TagANum5 = $("#ty_bannersx>.ty_banner_tusx:eq(4) .ty_banner_big a:eq(0)");

//原点
_EsdDynamicTransformationScript.esd2TagCircleNum1 = $("#ty_banner_diansx a:eq(0) .ty_banner_diansxtime");
_EsdDynamicTransformationScript.esd2TagCircleNum2 = $("#ty_banner_diansx a:eq(1) .ty_banner_diansxtime");
_EsdDynamicTransformationScript.esd2TagCircleNum3 = $("#ty_banner_diansx a:eq(2) .ty_banner_diansxtime");
_EsdDynamicTransformationScript.esd2TagCircleNum4 = $("#ty_banner_diansx a:eq(3) .ty_banner_diansxtime");
_EsdDynamicTransformationScript.esd2TagCircleNum5 = $("#ty_banner_diansx a:eq(4) .ty_banner_diansxtime");

//轮播后的标签
_EsdDynamicTransformationScript.esd2TagAfterNum1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313 a:eq(0)");


//轮播前的焦点
_EsdDynamicTransformationScript.esd1TagAfterNum1.focus(function (e) {
$(this).bind("keydown.keydown2_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagCircleNum8.click();
_EsdDynamicTransformationScript.esd1TagANum8.focus();
return false;
}else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum1.click();
_EsdDynamicTransformationScript.esd2TagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagAfterNum1.blur(function () {
$(this).unbind("keydown.keydown2_0");
});

//第一块
_EsdDynamicTransformationScript.esd2TagANum1.focus(function (e) {
$(this).bind("keydown.keydown2_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd1TagAfterNum1.focus();
return false;
}else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum2.click();
_EsdDynamicTransformationScript.esd2TagANum2.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum1.blur(function () {
$(this).unbind("keydown.keydown2_1");
});

//第二块
_EsdDynamicTransformationScript.esd2TagANum2.focus(function (e) {
$(this).bind("keydown.keydown2_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum1.click();
_EsdDynamicTransformationScript.esd2TagANum1.focus();
return false;
}else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum3.click();
_EsdDynamicTransformationScript.esd2TagANum3.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum2.blur(function () {
$(this).unbind("keydown.keydown2_2");
});

//第三块
_EsdDynamicTransformationScript.esd2TagANum3.focus(function (e) {
$(this).bind("keydown.keydown2_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum2.click();
_EsdDynamicTransformationScript.esd2TagANum2.focus();
return false;
}else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum4.click();
_EsdDynamicTransformationScript.esd2TagANum4.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum3.blur(function () {
$(this).unbind("keydown.keydown2_3");
});

//第四块
_EsdDynamicTransformationScript.esd2TagANum4.focus(function (e) {
$(this).bind("keydown.keydown2_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum3.click();
_EsdDynamicTransformationScript.esd2TagANum3.focus();
return false;
}else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum5.click();
_EsdDynamicTransformationScript.esd2TagANum5.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum4.blur(function () {
$(this).unbind("keydown.keydown2_4");
});

//第五块
_EsdDynamicTransformationScript.esd2TagANum5.focus(function (e) {
$(this).bind("keydown.keydown2_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd2TagCircleNum4.click();
_EsdDynamicTransformationScript.esd2TagANum4.focus();
return false;
}else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagANum5.blur(function () {
$(this).unbind("keydown.keydown2_5");
});

//轮播后的焦点
//	_EsdDynamicTransformationScript.esd2TagAfterNum1.focus(function (e) {
//
//		$(this).bind("keydown.keydown2_6", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				$(this).trigger("blur");
//				_EsdDynamicTransformationScript.esd2TagCircleNum5.click();
//				_EsdDynamicTransformationScript.esd2TagANum5.focus();
//				return false;
//			}else if (e.keyCode == 9) {
//				$(this).trigger("blur");
//			}
//		});
//
//	});
//	_EsdDynamicTransformationScript.esd2TagAfterNum1.blur(function () {
//		$(this).unbind("keydown.keydown2_6");
//	});

//二级选项卡，政务动态+媒体关注

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .product-wrap .product:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .product-wrap .product:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd3TagNum1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .zly_mzt_mzyw_dfxx20170313bt .zly_mzt_20170310mzyw_t li:eq(0) a");
_EsdDynamicTransformationScript.esd3TagNum2 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .zly_mzt_mzyw_dfxx20170313bt .zly_mzt_20170310mzyw_t li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .product-wrap .product:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .product-wrap .product:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .product-wrap .product:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(0) .product-wrap .product:eq(1) a:eq("+_EsdDynamicTransformationScript.num2+")");

//第一块
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown3_x1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown3_x1");

if( $("#ty_bannersx .ty_banner_tusx:eq(4)" ).is(":hidden") ){
_EsdDynamicTransformationScript.esd2TagCircleNum5.click();
}

_EsdDynamicTransformationScript.esd2TagANum5.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
$(this).unbind("keydown.keydown3_x1");
});

_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown3_x1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown3_x1");
});

_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown3_x1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown3_x1");
});

//第二块
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown3_x2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(this).unbind("keydown.keydown3_x2");
});


//二级选项卡，地方信息+理论研究


//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num3 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .product-wrap .product:eq(0) a").length-1;
_EsdDynamicTransformationScript.num4 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .product-wrap .product:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .zly_mzt_mzyw_dfxx20170313bt .zly_mzt_20170310mzyw_t li:eq(0) a");
_EsdDynamicTransformationScript.esd4TagNum2 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .zly_mzt_mzyw_dfxx20170313bt .zly_mzt_20170310mzyw_t li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .product-wrap .product:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .product-wrap .product:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .product-wrap .product:eq(0) a:eq("+_EsdDynamicTransformationScript.num3+")");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".zly_mzt_20170310c .zly_mzt_mzyw_dfxx20170313:eq(1) .product-wrap .product:eq(1) a:eq("+_EsdDynamicTransformationScript.num4+")");

//第一块
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown4_x1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {

$(this).unbind("keydown.keydown4_x1");
});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown4_x1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown4_x1");
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown4_x1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown4_x1");
});

//第二块
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown4_x2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
$(this).unbind("keydown.keydown4_x2");
});





}

















/**
* 共通底部处理
*/
/**
* 文本链接 a
*/
//	_EsdDynamicTransformationScript.navBlock = {}; //定义区域跳转类
//	_EsdDynamicTransformationScript.navBlock.debug = true; //是否是调试模式，调试模式有红边线，非调试模式关闭红边框
//	//定义跳转 使用jquery选择器语法
//	_EsdDynamicTransformationScript.navBlock.selector = {};

//公共的
$(".zly_mzt_20170309top").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
$(".zly_mzt_20170309nav").attr("id","nav");
_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".zly_mzt_20170310foot").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";

//面包屑导航（除首页）
if( $(".CurrChnlCls").length > 0 || $(".supercolor").length > 0  ){

//目录页的翻页input处理
$("#num").attr("title","跳转到第多少页");
$("#num").attr("placeholder","跳转到第多少页");
$(".zly_fy20170314 input[type='submit']").attr("title","确定");
$(".zly_fy20170314 input[type='submit']").attr("placeholder","确定");

if( $(".zly_mzt_20170310c").length > 0 ){
$(".zly_mzt_20170310c").attr("id","main");
}
if( $(".zly_xq_20170316").length > 0 ){
$(".zly_xq_20170316").attr("id","main");
}
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
$(".zly_mzt_20170310c > div:eq(0)").attr("id","left");
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
$(".zly_mzt_20170310c > div:eq(1)").attr("id","right");
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";

$(".zly_xq_20170316 > div").addClass("navBlock");
$(".zly_mzt_20170310c > div").addClass("navBlock");
$("#content").addClass("navBlock");
$(".zly_mzt_mzyw20170310dq").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}



if(location.href=="http://mzt.jl.gov.cn/" || location.href=="http://mzt.jl.gov.cn/index.html"){
//首页
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".zly_mzt_20170310banner").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".zly_mzt_20170310banner").addClass("navBlock");
$(".zly_mzt_20170310tzgg").addClass("navBlock");
$(".zly_mzt_20170310tpxw").addClass("navBlock");
$(".zly_mzt_20170310mzyw").addClass("navBlock");
$(".zly_mzt_20170310bsdt").addClass("navBlock");
$(".zly_mzt_20170310c").addClass("navBlock");
$(".zly_mzt_20170310tpxw").addClass("navBlock");
$(".zly_mzt_20170310mzyw").addClass("navBlock");
$(".zly_mzt_20170310bsdt").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}


if(location.href=="http://mzt.jl.gov.cn/wshd_74268/ldxx/" || location.href=="http://mzt.jl.gov.cn/wshd_74268/wsxfss/"){
//领导信箱--网上信访

//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".zly_mzt_20170310banner").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".zly_mzt_20170310banner").addClass("navBlock");
$(".zly_mzt_20170310c").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}


if(location.href=="http://mzt.jl.gov.cn/xxgk_2643/jgzn/"){
//二级页(导航---机构)
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".zly_mzt_20170310banner").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".zly_mzt_20170310banner").addClass("navBlock");
$(".zly_mzt_20170310c>div>div").addClass("navBlock");
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://mzt.jl.gov.cn/xxgk_2643/"){
//二级页(导航---公开)
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".zly_mzt_20170310banner").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".zly_mzt_20170310banner").addClass("navBlock");
$(".zly_mzt_20170310c>div>div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个

}

if(location.href=="http://mzt.jl.gov.cn/bsfw_74187/"){
//二级页(导航---服务)
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".zly_mzt_20170310banner").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".zly_mzt_20170310banner").addClass("navBlock");
$(".zly_mzt_20170310c .zly_bt_20170314l").addClass("navBlock");
$(".zly_mzt_20170310c .zhx_bmfw").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个

}


if(location.href=="http://mzt.jl.gov.cn/wshd_74268/" || location.href=="http://mzt.jl.gov.cn/mztyw_74291/shzzgl/"){
//二级页(导航---互动,业务)
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".zly_mzt_20170310banner").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".zly_mzt_20170310banner").addClass("navBlock");
$(".w1200>div").addClass("navBlock");
$(".w1200>ul").addClass("navBlock");
$(".zly_mzt_20170310c>div").addClass("navBlock");
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个

}

if(location.href=="http://mzt.jl.gov.cn/mzyw_74261/"){
//二级页(民政要闻)
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".zly_mzt_20170310banner").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".zly_mzt_20170310banner").addClass("navBlock");
$(".zly_mzt_20170310c>div").addClass("navBlock");
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个


}

/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
